-- GENERATED SPELL FOR [Bitter Initiate] --


function spell0_32238(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(32063,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32238', 26000, 1)
end

function spell1_32238(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32238', 3000, 1)
end

function Sorts_32238(pUnit, Event)
local choix_sorts_32238 = math.random(0, 1)
if choix_sorts_32238 == 0 then
pUnit:RegisterEvent('spell0_32238', 1, 1)
end
if choix_sorts_32238 == 1 then
pUnit:RegisterEvent('spell1_32238', 1, 1)
end
end

function mob32238_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32238', math.random(1500, 3000), 1)
end

function mob32238_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32238_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32238_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32238, 1, 'mob32238_Action')
RegisterUnitEvent(32238, 2, 'mob32238_Leave')
RegisterUnitEvent(32238, 3, 'mob32238_Kill')
RegisterUnitEvent(32238, 4, 'mob32238_Die')
